# -*- coding:utf-8 -*-
# Author:Ami

import multiprocessing, time,threading


def run(name):
    time.sleep(2)
    print("hello", name)
    t = threading.Thread(target=thread_run,)
    t.start()

def thread_run():
    print(threading.get_ident())
if __name__ == "__main__":

    for i in range(10):
        p = multiprocessing.Process(target=run, args=('bob%s' % i,))
        p.start()
        # p.join()
